function loadnews() {
	$.get('api/news_get.php?token=d3ca6bcc57bcb0b8a814504ea03aab86', function(data){
		let news = JSON.parse(data)['news']
		showTable(news)
	});
}

function showTable(news) {
	let div = $('#news')
	for (let i = 0; i < news.length; i++) {
		let title = $('<h1>'+news[i].title + '</h1>')
		let content = $('<h2>'+news[i].content + '</h2>')
		let date = $('<h3>'+news[i].date + '</h3><br>')
		
		/*btn.click(function() {
			showInfo(accounts[i])
		})*/

		div.append(title)
		div.append(content)
		div.append(date)
		div.append('<hr>')
		console.log(title)
	}
		console.log(news.length)
}
